import Vue from "vue";
import hljs from "highlight.js";
//
import "highlight.js/styles/github-gist.css"

//自定义指令'highlight'
Vue.directive('highlight',function (el) {
    let blocks = el.querySelectorAll('pre code');
    blocks.forEach((block)=>{
        hljs.highlightBlock(block)
    })
})
